package com.ebt.m.customer.model;

import com.ebt.m.customer.listener.ICustomer;
import com.ebt.m.data.DataAnnotationExcept;

import java.io.Serializable;
import java.util.HashSet;

/**
 * Created by Rick.Wang on 2016/4/11.
 */
public class CustomerModelDetail implements ICustomer, Serializable {

    public static final int TYPE_NEW = 0;
    public static final int TYPE_PROPOSAL = 1;
    public static final int TYPE_INTOUCH = 2;
    public static final HashSet<Integer> TYPES;
    static {
        TYPES = new HashSet();
        TYPES.add(TYPE_NEW);
        TYPES.add(TYPE_PROPOSAL);
        TYPES.add(TYPE_INTOUCH);
    }

    @DataAnnotationExcept
    public int type = 0;

    public String customerUuid;
    public String name;
    public String portraitPath;
    public Boolean isFromWeixin;
    public Integer score;
    public Integer newsNumber;
    public Long lastActiveTime;

    public CustomerModelDetail(String customerUuid,
                               String name,
                               String portraitPath,
                               Boolean isFromWeixin,
                               Integer score,
                               Integer newsNumber,
                               Long lastActiveTime,
                               int type){
        this.customerUuid = customerUuid;
        this.name = name;
        this.portraitPath = portraitPath;
        this.isFromWeixin = isFromWeixin;
        this.score = score;
        this.newsNumber = newsNumber;
        this.lastActiveTime = lastActiveTime;
        this.type = type;
    }

    public CustomerModelDetail(){

    }

    @Override
    public String getCustomerUuid() {
        return customerUuid;
    }
}
